<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>ManageSystem管理系统</title> 
    <!-- bootstrap 3.0.2 -->
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- font Awesome -->
    <link href="/resource/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="/resource/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Morris chart -->
    <link href="/resource/css/morris/morris.css" rel="stylesheet" type="text/css" />
    <!-- jvectormap -->
    <link href="/resource/css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <!-- iCheck for checkboxes and radio inputs -->
    <link href="/resource/css/iCheck/all.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="/resource/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div class="row">
	    <div class="col-md-12">
	    	<h1 class="panel-heading">我的成绩</h1>
	        <!--breadcrumbs start -->
	        <ul class="breadcrumb">
				<li><a href="/index/toIndex"><i class="fa fa-home"></i> 首页</a></li>
				<li class="active">我的成绩</li>
			</ul>
	        <!--breadcrumbs end -->
	    </div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<section class="panel">
			    <div class="panel-body table-responsive">
					<table class="table table-hover">
						<thead>
							<tr>
								<th style="width:50px;">序号</th>
								<th>姓名</th>
								<th>学号</th>
								<th>课程名称</th>
								<th>分数</th>
								<th>学分</th>
								<th>课时</th>
								<th>教师名称</th>
								<th>创建时间</th>
							</tr>
						</thead>
						<tbody>
							<tr th:each="item,stat : ${scoreStu.list}">
								<td th:text="${item.id}"> </td>
								<td th:text="${item.stuName}"></td>
								<td th:text="${item.stuNumber}"></td>
								<td th:text="${item.subjectName}"></td>
								<td th:text="${item.score}"></td>
								<td th:text="${item.credit}"></td>
								<td th:text="${item.subjectTime}"></td>
								<td th:text="${item.teacherName}"></td>
								<td th:text="${#dates.format(item.createdTime,'yyyy-MM-dd')}"></td>
							</tr>
							<tr th:if="${#lists.isEmpty(scoreStu.list)}">
								<td colspan="9" align="center">无数据</td>
							</tr>
						</tbody>
					</table>
			    </div>
			    <div class="panel-footer bg-white text-right">
                     <ul class="pagination">
                         <li><a th:href="@{/stu/score/list(pageNum=${scoreStu.navigateFirstPage},pageSize=${scoreStu.pageSize})}" title="首页" th:class="${scoreStu.isFirstPage} ? 'paginationNotAllowed' : ''">«</a></li>
                         <li><a th:href="@{/stu/score/list(pageNum=${scoreStu.prePage},pageSize=${scoreStu.pageSize})}" title="上一页" th:if="${scoreStu.hasPreviousPage}">‹</a></li>
                         <li th:each="pageinfo : ${scoreStu.navigatepageNums}"><a th:href="@{/stu/score/list(pageNum=${pageinfo},pageSize=${scoreStu.pageSize})}" th:class="${pageinfo == scoreStu.pageNum} ? 'paginationActive' : ''" th:text="${pageinfo}"></a></li>
                         <li><a th:href="@{/stu/score/list(pageNum=${scoreStu.nextPage},pageSize=${scoreStu.pageSize})}" title="下一页" th:if="${scoreStu.hasNextPage}">›</a></li>
                         <li><a th:href="@{/stu/score/list(pageNum=${scoreStu.navigateLastPage},pageSize=${scoreStu.pageSize})}" title="未页" th:class="${scoreStu.isLastPage} ? 'paginationNotAllowed' : ''">»</a></li>
                     </ul>
                 </div>
			</section>
		</div>
	</div>

	<!-- jQuery 2.0.2 -->
	<script src="/resource/js/jquery.min.js" type="text/javascript"></script>
	<!-- jQuery UI 1.10.3 -->
	<script src="/resource/js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
	<!-- Bootstrap -->
	<script src="/resource/js/bootstrap.min.js" type="text/javascript"></script>
	<!-- iCheck -->
    <script src="/resource/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
	<!-- Director App -->
	<script src="/resource/js/Director/app.js" type="text/javascript"></script>
	<script src="/resource/js/jquery.serializejson.js"></script>
	<script type="text/javascript">

		//获取当前登录的用户--防止菜单被拖出去访问
		var scoreStuStr = sessionStorage.getItem("douglas");
		if(scoreStuStr == null || scoreStuStr == "" || scoreStuStr == "undefined"){
			window.location.href = "/stu/score/toLogin";
		}
	</script>
</body>
</html>
